package com.deluxelx.soul.inn.common.result;

import lombok.Getter;
import lombok.Setter;

/**
 * HTTP 自定义状态码
 *
 * @author: zihao.liao
 * @date: 2024/1/19 11:19
 */
@Getter
public enum ResponseCode {
    // 常规
    SUCCESS("200", "请求成功"),
    ERROR("-1", "请求失败"),
    // 权限，登陆注册
    ACCOUNT_ALREADY_EXISTS("4000", "账号已存在"),
    // 咨询师相关
    COUNSELOR_NOT_FOLLOW("5000", "未关注咨询师"),
    ;

    private final String code;
    private final String info;

    ResponseCode(String code, String info) {
        this.code = code;
        this.info = info;
    }

}
